<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>
        {% block title %}FastAPI模板示例{% endblock %}
    </title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 40px;
        }
        .nav {
            margin-bottom: 20px;
        }
        .nav a {
            margin-right: 10px;
        }
    </style>
</head>
<body>
    <div class="nav">
        <a href="/template">首页</a>
        <a href="/template/goods/1">商品1</a>
        <a href="/template/goods/2">商品2</a>
        <a href="/template/goods/3">商品3</a>
        <a href="/template/user/1">管理员</a>
        <a href="/template/user/2">用户</a>
    </div>

    {% block content %}
    {% endblock %}
</body>
</html>